package com.ocgs.service;

import com.ocgs.base.core.exception.BaseServiceException;
import com.ocgs.model.Product;
import com.ocgs.model.StorageRecord;
import com.ocgs.pagination.PaginatedListImpl;
import org.displaytag.pagination.PaginatedList;

/**
 * Created with IntelliJ IDEA.
 * User: bryant
 * Date: 10/21/12
 * Time: 10:48 PM
 * To change this template use File | Settings | File Templates.
 */
public interface StorageService {

    int deleteByPrimaryKey(Integer id) throws BaseServiceException;

    StorageRecord storagePutIn(StorageRecord record) throws BaseServiceException;

    int insertSelective(StorageRecord record) throws BaseServiceException;

    StorageRecord selectByPrimaryKey(Integer id) throws BaseServiceException;

    int updateByPrimaryKeySelective(StorageRecord record) throws BaseServiceException;

    int updateByPrimaryKeyWithBLOBs(StorageRecord record) throws BaseServiceException;

    int updateByPrimaryKey(StorageRecord record) throws BaseServiceException;

    StorageRecord storageRemoval(StorageRecord record) throws BaseServiceException;

    PaginatedList findAllInOutStorageForPagination(PaginatedListImpl paginatedList,Product record) throws BaseServiceException;
}
